package com.ershui.blog.article.service.impl;

import com.ershui.blog.article.domain.LArticle;
import com.ershui.blog.article.domain.SelectArticleDto;
import com.ershui.blog.article.mapper.LArticleMapper;
import com.ershui.blog.article.service.LArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class LArticleServiceImpl implements LArticleService {
    @Autowired
    private LArticleMapper articleMapper;

    @Override
    public int insert(LArticle record) {
        return articleMapper.insert(record);
    }

    @Override
    public int insertSelective(LArticle record) {
        return articleMapper.insertSelective(record);
    }

    @Override
    public List<SelectArticleDto> selectArticleList(LArticle record) {
        return articleMapper.selectArticleList(record);
    }

    @Override
    public int deleteArticles(Map param) {
        return articleMapper.deleteArticles(param);
    }

    @Override
    public LArticle selectArticleById(Long id) {
        return articleMapper.selectArticleById(id);
    }

    @Override
    public void updateArticle(LArticle article) {
        articleMapper.updateArticle(article);
    }
}
